<%--
  Created by IntelliJ IDEA.
  User: 10975
  Date: 2020/12/8
  Time: 21:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>register</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="../../layui/css/layui.css">
</head>
<body background="${pageContext.request.contextPath}/statics/img/dota2_1.jpg" style=" background-repeat:no-repeat ;
background-size:100% 100%;
background-attachment: fixed;">


<form style="text-align: center;margin-top: 200px" class="layui-form" action="${pageContext.request.contextPath}/user/register" method="post">
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" style="color: white">用户名</label>
            <div class="layui-input-inline">
                <input type="text" name="username" required  lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input">
            </div>
        </div>

    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" style="color: white">密码</label>
            <div class="layui-input-inline">
                <input type="password" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label" style="color: white">steamKey</label>
            <div class="layui-input-inline">
                <input type="text" name="steamid" required lay-verify="required" placeholder="请输入steamid" autocomplete="off" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn layui-btn-warm" lay-submit="" lay-filter="registersubmit">注册</button>
            </div>
        </div>

    </div>
</form>
</body>

<script src="../../layui/layui.js"></script>
<script>
    layui.use('form', function(){
        var form = layui.form;



        //监听提交
        form.on('submit(registersubmit)', function(data){
            layer.msg(JSON.stringify(data.field));

            console.log("registerjspsucc",data.field);
        });
    });

</script>
</html>
